from conftest import login_token6
import pytest,requests

class Test_health:
    # 查询礼物列表
    def test_health_01(self,login_token6):
        userId,sessionId=login_token6
        url='http://10.59.9.18/health/user/inquiry/v1/findGiftList'
        headers={
            'userId':str(userId),
            'sessionId':str(sessionId)
        }
        r=requests.get(url=url,headers=headers)
        r_json=r.json()
        print(r_json)

# 送礼物
    def test_health_02(self,login_token6):
        userId,sessionId=login_token6
        url='http://10.59.9.18/health/user/inquiry/verify/v1/handselGift'
        headers={
            'userId':str(userId),
            'sessionId':str(sessionId)
        }
        data={
            'inquiryRecordId':1,
            'giftId':1001
        }
        r=requests.put(url=url,headers=headers,params=data)
        r_json=r.json()
        print(r_json)